<?php include_once 'header.php'; ?>





<div class="head clearfix">
    <div class="left">
        <div class="wrapper">
            <i>用户</i>
            <span class="user_body_phone"><?php echo($user->body_phone); ?></span>
        </div>
    </div>
    <div class="middle">
        <span><a href="/account/pay" style=" text-decoration: none; color:#7f8287;">充值</a> </span>
    </div>
    <div class="middle">
        <span><a href="/account/withdraw" style=" text-decoration: none; color:#7f8287;">提现</a></span>
    </div>
    <div class="right">
        <div class="wrapper">
            <i>可用余额</i>
            <span class="user_body_balance"><?php echo($user->body_balance); ?> </span>
        </div>
    </div>
</div>


<div class="container dashboard">
    <table class="dashboard">
        <thead onclick="javascript:void()" >
            <tr onclick="javascript:void()"   >
                <td width="30%" style="text-align: center; ">商品</td>
                <td style="text-align: center; ">买入</td>
                <td style="text-align: center; ">卖出</td>
            </tr>
        </thead>
        <tbody>
<?php foreach ($objects as $item) { ?>
            <tr data-id="<?php echo($item->id); ?>" >
                <td style="text-align: center;color:#fff;border-left:solid 3px #000;border-right:solid 3px #000; border-bottom: solid 1px #ccc;"><?php echo($item->body_name); ?> <?php echo($item->body_name_english); ?></td>

                <td style="text-align: center" class="price <?php
                    if($item->body_price_previous > $item->body_price) echo 'newgreen';
                    else echo 'newred';
                ?>"> <?php echo(sprintf('%.' . $item->body_price_decimal . 'f', $item->body_price)); ?> </td>

                <td style="text-align: center" class="price <?php
                    if($item->body_price_previous > $item->body_price) echo 'newgreen';
                    else echo 'newred';
                ?>">     <?php echo(sprintf('%.' . $item->body_price_decimal . 'f', $item->body_price)); ?>    </td>
            </tr>

<?php } ?>



        </tbody>
    </table>
</div>

<?php include_once 'footer.php'; ?>
